package com.itheima.dao;

import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberDao {
    /***
     * 根据电话号码查找会员是否存在
     * @param telephone
     * @return
     */
    Member findByTelephone(String telephone);

    /***
     * 注册会员
     * @param member
     */
    void add(Member member);

    /***
     * 根据月份查询会员数量
     * @param month
     * @return
     */

    Integer findMemberCountByMonth(String month);

    //今日新增会员数
    Integer findMemberCountByDate(String today);

    //总会员数
    Integer findMemberTotalCount();

    //本周新增会员数-本月新增会员数
    Integer findMemberCountAfterDate(String thisWeekMonday);

    List<Map<String, Object>> getMemberGenderReport();


    Integer findMemberCountByDateRange(Map<String, String> parasMap);

    Integer findMemberCountAfterBirthday(String beginDate);

}
